#include <REGX51.H>
#include <INTRINS.H>

void Delay1ms()		//@12.000MHz
{
	unsigned char data i, j;

	i = 2;
	j = 239;
	do
	{
		while (--j);
	} while (--i);
}


void Delaylms(unsigned int xms)
{
	do
	{
		Delay1ms();
	}while(--xms);
}


void shan()
{
	while(1)
	{
		P2_0 = 0;
		Delaylms(100);
		P2_0 = 1;
		Delaylms(100);
	}
	
}

void test1()
{
	while(1)
	{
		if(P3_1 == 0)
		{
			P2_0 = 0;
		}
		else
		{
			P2_0 = 1;
		}
	}
}

void test2()
{
	while(1)
	{
		P2_0 = P3_1;
	}
}	


int main()
{
	while(1)
	{
		P2_0 = P3_1;
	}
	
}